n=10; a=[10,1,5,2,7,4,9,3,6,8]; b=[7,5,1,8,10,4,6,2,3,9];